package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.Message;
import com.example.rbacmanage.service.app.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/app/message")
public class AppMessageController {
    @Autowired
    private MessageService messageService;

    @GetMapping("/list")
    public Result list(Message message){
        return Result.success(messageService.getAll(message));
    }
}
